package homework.day07;

import homework.day07.bean.Circle;
import homework.day07.bean.Cylinder;

/**
 * @author ThinkBook
 */
public class Test06 {
    public static void main(String[] args) {
        Circle circle = new Circle(10);
        System.out.println(circle.toString()+"的圆的面积为"+circle.getSurfaceArea());
        System.out.println(circle.toString()+"的圆的周长为"+circle.getCircumference());
        Cylinder cylinder = new Cylinder(20,20);
        System.out.println(cylinder.toString()+"的圆柱的面积为"+cylinder.getSurfaceArea());
        System.out.println(cylinder.toString()+"的圆柱的体积为"+cylinder.getVolume());
    }
}
